export const rules = {
    imageUrl: [
        { required: true, message: '请上传头像', trigger: 'change' }
    ],
    name: [
        { required: true, message: '请输入用户名', trigger: 'blur' },
        { min: 2, max: 20, message: '用户名长度2-20位', trigger: 'blur' },
        {
            pattern: new RegExp(/^((?!\+|\.|\\|\/|:|\*|\?|\!|<|>|\||'|%|@|#|&|\$|\^|&|\*).){1,50}$/),
            message: '名称不允许包含特殊字符',
            trigger: 'blur'
        }
    ],
    sex: [
        { required: true, message: '请选择性别', trigger: 'change' }
    ],
    age: [
        { required: true, message: '请输入年龄', trigger: 'blur' },
    ],
    post: [
        { required: true, message: '请输入岗位名称', trigger: 'blur' },
    ],
    manager: [
        { required: true, message: '请输入主管姓名', trigger: 'blur' },
    ],
    deptId: [
        {
            required: true,
            message: '请选择所属部门',
            trigger: 'change',
        },
    ],
    entryTime: [
        {
            required: true,
            message: '请选择入职时间',
            trigger: 'change',
        },
    ],
    status: [
        {
            required: true,
            message: '请选择状态',
            trigger: 'change',
        },
    ],
    
}